package com.zmy.xcx.pojo.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@JsonInclude(JsonInclude.Include.NON_NULL) // 忽略空字段
public class HypertensionSelfCheckDTO {

    @NotNull(message = "openid不能为空")
    private String openid;

    @NotNull(message = "年龄不能为空")
    private Integer age;

    @NotNull(message = "年龄段不能为空")
    private Integer ageGroup;

    /**
     * JSON格式的自检详情
     */
    private Object checkDetails;

    @NotNull(message = "疑似状态不能为空")
    private Integer isSuspected;

    @NotNull(message = "高血压分级不能为空")
    private Integer hypertensionLevel;

    @NotNull(message = "心血管风险分级不能为空")
    private Integer cardiovascularRisk;

    @NotNull(message = "中医辨证标识不能为空")
    private Integer hasTcmDiagnosis;

    /**
     * 选择的症状列表
     */
    private List<String> selectedSymptoms;
}
